<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        <div class="layui-form-item">
            <label class="layui-form-label required">昵称</label>
            <div class="layui-input-block">
                <input autocomplete="off" type="text" name="name" class="layui-input" lay-verify="required" lay-reqtext="请输入昵称" placeholder="请输入昵称" value="{$row.name}">
            </div>
        </div>

         <!-- 用户组 -->
         
        {if session("admin.group") == 1}
         <div class="layui-form-item">
            <label class="layui-form-label required">用户组</label>
            <div class="layui-input-block">
                <select name="gid">
                    {foreach $groups as $vo}
                    <option value="{$vo.value}" {if $row.gid==$vo.value}selected=''{/if}>{$vo.label}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        {/if}
        <!-- 房间号 -->
        {if session("admin.group") == 1}
        <div class="layui-form-item">
            <label class="layui-form-label">房间号</label>
            <div class="layui-input-block">
                <select name="rid">
                    {foreach $rooms as $vo}
                    <option value="{$vo.roomid}" {if $row.rid==$vo.roomid}selected=''{/if}>{$vo.roomid}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        {/if}
        <div class="hr-line"></div>

        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>
        
    </form>
</div>